#ifndef TOPOLOGY_H
#define TOPOLOGY_H

enum {
	MAX_NODE_INDEX = 15
};
enum {
	GRID_WIDTH = 4
};
enum {
	GRID_HEIGHT = 4
};
enum {
	MAX_NEIGHBORS = 4
};

uint8_t idmap[16] = {
	10, 11, 12, 13, 
	20, 21, 22, 23,
	30, 31, 32, 33,
	40, 41, 43, 43
};

uint8_t topology[16][4] = {
	{1, 4, 99, 99},	//0
	{0, 2, 5, 99},	//1
	{1, 6, 3, 99},	//2
	{2, 7, 99, 99},	//3
	{0, 5, 8, 99},	//4
	{1, 4, 6, 9},	//5
	{2, 5, 7, 10},	//6
	{3, 6, 11, 99},	//7
	{4, 9, 12, 99},	//8
	{5, 8, 10, 13}, //9
	{6, 9, 14, 11}, //10
	{7, 10, 15, 99}, //11
	{8, 13, 99, 99}, //12
	{9, 12, 14, 99}, //13
	{10, 13, 15, 99}, //14
	{11, 14, 99, 99}, //15
};
#endif
